﻿@using Ed.Common;
@using Ed.Web.Helpers
@{
    Layout = null;
    //准备资料
    var life_pics = (object[])Utils.StringToObjectArray(Model.PInfoLifeimg, ',');
    //证书资料
    var cert_pics = (object[])Utils.StringToObjectArray(Model.PInfoCertimg, ',');
    var services = (List
<Ed.Entity.TPregnanterServiceRecord>
)ViewBag.ServiceRecord;
    var evals = (List<System.Collections.Generic.Dictionary<string, object>>)ViewBag.Eval;
}
@model Ed.Entity.TPregnanterInfo
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>@Model.PInfoName 雪绒花母婴关爱中心</title>
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta name="baidu-site-verification" content="H6od0XC7DJ">
    <link rel="stylesheet" type="text/css" href="/Themes/default/mobile/css/xueronghua.3g.css">
    <script type="text/javascript">        //手机机型适配
        if (/Android (\d+\.\d+)/.test(navigator.userAgent)) {
            var version = parseFloat(RegExp.$1);
            if (version > 2.3) {
                var phoneScale = parseInt(window.screen.width) / 640;
                document.write('<meta name="viewport" content="width=640, minimum-scale = ' + phoneScale + ', maximum-scale = ' + phoneScale + ', target-densitydpi=device-dpi">');
            } else {
                document.write('<meta name="viewport" content="width=640, target-densitydpi=device-dpi">');
            }
        } else {
            document.write('<meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">');
        }</script>
    <meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">
    <script src="~/Themes/default/lib/jquery/jquery-1.11.1.min.js"></script>
    <script src="/Themes/default/base/js/shengxiao.js"></script>
    <script src="/Themes/default/base/js/xingzuo.js"></script>
    <script src="/Themes/default/base/js/yuesaoDes.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            //初始化生肖属相及月嫂技能描述
            init_sx_sx();
           
        });
        //初始化生肖属相
        function init_sx_sx() {
            var sx = $("#sx").html();
            var xz = $("#xz").html();
            var yuesaodes = $("#PInfoDes").val();
            var sx_content = get_desc_by_sx(sx);
            var xz_content = get_desc_by_xz(xz);
            var yuesaodes_content = get_desc_by_desname(yuesaodes);
            $("#sx_content").html(sx_content);
            $("#xz_content").html(xz_content);
            $("#yuesaodes_content").html(yuesaodes_content);
        }
    </script>
</head>
<body>
    <header>
    <a class="return" href="javascript:history.go(-1)" title="返回"></a>
    <section class="title"><span class="yuesaoName">@Model.PInfoName</span><span>编号ID: @Model.PInfoCode</span></section>
    <a class="returnList" href="/Order/YuesaoOrder/MobileAddYuesao" title="列表页"></a>
</header>
    <section class="back detailsInfo pd30">
    <section class="userImg fl">
     <img src="@Model.PInfoPhoto" width="178" height="178" alt="@Model.PInfoName" title="@Model.PInfoName" class="photo" />      
    </section>
    <section class="userInfo fl">
        <p>@Model.PInfoAge 岁，现居住在<span class="money">@Model.PInfoAddress</span><br />
        有<span class="money">@Html.OptionsPalse(@Model.PInfoEdage, "1|1年以下,2|1-3年,3|3-5年,4|5-7年,5|7-9年,6|9年以上")</span>家政服务行业工作经验。 </p>
        <p><span class="gray9">综合评级：</span><span style="color: red;">@Html.OptionsPalse(@Model.PInfoLevel, "1|★,2|★★,3|★★★,4|★★★★,5|★★★★★,6|★★★★★★,7|★★★★★★★,8|★★★★★★★★")</span></p>       
        <p class="price">￥@Model.PInfoPrice<span class="gray">/24小时</span></p>
    </section>
</section>
    <nav>
    <section class="detailsNav nav-tag" style="position: relative; top: 0px; border-bottom-style: none;">
        <ul class="clearfix">
            <li title="baseInfo"><a id="baseInfoa" class="active" href="#baseInfo" title="基本信息">基本<br/>信息</a><span></span></li>
            <li title="workSkills"><a class="" href="#workSkills" title="职业技能">性格<br/>证件</a><span></span></li>            
            <li title="characters"><a href="#characters" title="月嫂性格" class="">照片<br/>视频</a><span></span></li>
            <li title="review"><a href="#review" title="大家点评" class="">评价<br/>记录</a></li>
        </ul>
    </section>
</nav>
    <!--基本资料 start-->
    <section class="back yuesaoLabel" id="baseInfo">
    <p>@Model.PInfoPermanent 人  @Model.PInfoNational @Model.PInfoXingzuo @Model.PInfoShuxiang @Html.OptionsPalse(@Model.PInfoEducation, "1|本科及以上,2|大专,3|高中,4|初中及以下")学历</p>
    <p><strong>特别技能：</strong><input id="PInfoClass" name="PInfoClass" type="hidden" value=""><a id="S_PInfoClass"></a></p>
    <p><strong>特长爱好：</strong>@Model.PInfoHobby</p>@Html.HiddenFor(model => model.PInfoYdes)
    <h2>个人评价</h2>
    <p>@Model.PInfoMyNote</p>
    <h2>雪绒花评价</h2>
    <p>@Model.PInfoNote</p>
    <h2>技能说明</h2>
    @Html.HiddenFor(model => model.PInfoDes)
     <p style="margin-top: 5px;" id="yuesaodes_content">               
    </p>
    </section>

    <section class="back yuesaoLabel" id="workSkills">
    <section class="title">性格证件</section>
    <h2>生肖-<span id="sx">@Model.PInfoShuxiang.Replace("属", "")</span></h2>
    <p id="sx_content"></p>
    <h2>星座-<span id="xz">@Model.PInfoXingzuo.Replace("座", "")</span></h2>
    <p id="xz_content"></p>
    <h2>证件图片</h2>
     <section class="scroll relative">
       <section class="scroll_box" id="scroll_img" style="visibility: visible;">
           <ul class="scroll_wrap">
                                                
                    @if (@Model.PInfoCertimg != "|")
                    {
                        foreach (var cert_pic in cert_pics)
                        {
                            try
                            {
                                var cert_infos = cert_pic.ToString().Split('|');
                                var big = cert_infos[1];
                                var small = cert_infos[2];
                                var des = cert_infos[3] ?? "暂无描述...";
                        <li> <a class="pic" href="@big" title=""><img src="@small" alt="" width="auto" height="200px;" /></a></li>
                            }
                            catch
                            {
                            }
                        }
                    }
                    else
                    {
                        <h6>对不起，该育婴师暂无证件照</h6>
                    }   

                   </ul>
                </section>
            </section>
            </section>

            <!--生活照显示-->
           <section class="back yuesaoLabel" id="characters">
           <section class="title">照片视频</section>
             <h2>生活照片</h2>
            <section class="scroll relative">
                <section class="scroll_box" id="scroll_img" style="visibility: visible;">
                    <ul class="scroll_wrap">
                                                               
                    @if (@Model.PInfoLifeimg != "|")
                    {
                        foreach (var life_pic in life_pics)
                        {
                            try
                            {
                                var life_infos = life_pic.ToString().Split('|');
                                var big = life_infos[1];
                                var small = life_infos[2];
                                var des = life_infos[3] ?? "暂无描述...";
                       <li> <a class="pic" href="@big" title=""><img src="@small" alt="" width="auto" height="210" /></a></li>
                            }
                            catch
                            {
                            }
                        }   
                    }
                    else
                    {
                        <h6>
                            对不起，该育婴师暂无生活照</h6>
                    }

                   </ul>
                </section>
            </section>
            </section>

    <!--大家点评 start-->
     <section class="back yuesaoLabel" id="review">
    <section class="title">客户评价</section>
    <section class="back reviList pd30">  
    @foreach (var evaltion in evals)
    {
        var evaImg = @Html.GetValue(evaltion, "PEvaImg").ToString();
        var ping_pics = (object[])Utils.StringToObjectArray(evaImg, ',');
        var evaImgbox = @Html.GetValue(evaltion, "PEvaImgbox");
            <section class="agentEval clearfix">
                <p class="user clearfix"> <a href="javascript:void(0);"><img class="userImg" src="@evaImgbox"></a><span>@Html.GetValue(evaltion, "PEvaPerson") </span><span style="margin-left: 20px;">评价级别：</span><span class="xing">@Html.OptionsPalse(int.Parse(@Html.GetValue(evaltion, "PEvaLevel").ToString()), "1|★,2|★★,3|★★★")</span></p>
                <p>@Html.GetValue(evaltion, "PEvaContent")</p>  
                    <section class="tupian">
                    <section class="list_img">
                        <ul>
                            @foreach (var ping_pic in ping_pics)
                            {
                                try
                                {
                                    var ping_infos = ping_pic.ToString().Split('|');
                                    var big = ping_infos[1];
                                    var small = ping_infos[2];
                                    var des = ping_infos[3] ?? "暂无描述...";
                                <li><a class="pic" href="javascript:void(0);" title="">
                          <img class="img2" style="float:left; margin-left:10px;"  width="60" height="80"  src="@small" alt="" title="@des"/></a> </li>
                                }
                                catch
                                {
                                }
                            }
                            <section class="clear">
                            </section>
                        </ul>
                    </section>
                </section>
                <section style="clear:both;"> </section>
                <p class="time">@DateTime.Parse(@Html.GetValue(evaltion, "PEvaTime").ToString()).ToString("yyyy-MM-dd")</p>
            </section>                                               
    }
</section></section>

<section class="footerFix" style="position: fixed;">
    <section class="footerback clearfix">
        <a style="padding-left:30px;" class="tel_but" href="tel:037188888858" title="预约电话"><em></em><span class="fl clearfix"><span class="fl">预约电话:</span><span class="font36 fl">0371-8888 8858</span></span></a>
    </section>
</a>
</section>
    <!--大家点评 end-->
    <script type="text/javascript" src="/Content/js/iMain.js"></script>
</body>
</html>
